package com.boluo.common.constant;

import com.boluo.common.utils.DateUtils;

/**
 * @Author boluo
 * @Date 2023/4/8 16:43
 * @注释
 */
public class BusinessConstants {

    // 是否是套餐
    /**
     *  1 是套餐
     */
    public static final int CAR_PACKAGE_YES = 1;
    /**
     * 0 不是套餐
     */
    public static final int CAR_PACKAGE_NO = 0;

    // 上下架
    /**
     *  1 已上架
     */
    public static final int SALE_STATUS_ON = 1;
    /**
     * 0 未上架
     */
    public static final int SALE_STATUS_OFF = 0;

    // 审核状态
    /**
     * 0 初始化
     */
    public static final int AUDIT_STATUS_INIT = 0;
    /**
     * 1 审核中
     */
    public static final int AUDIT_STATUS_PENDING = 1;
    /**
     * 2 审核通过
     */
    public static final int AUDIT_STATUS_SUCCESS = 2;
    /**
     * 3 审核拒绝
     */
    public static final int AUDIT_STATUS_FAIL = 3;
    /**
     * 4 无需审核
     */
    public static final int AUDIT_STATUS_NOT_NEED = 4;


    //预约单状态
    /**
     * 0 预约中
     */
    public static final int APPOINTMENT_STATUS_PENDING = 0;
    /**
     * 1 已到店
     */
    public static final int APPOINTMENT_STATUS_ARRIVED = 1;
    /**
     * 2 用户取消
     */
    public static final int APPOINTMENT_STATUS_USER_CANCELED = 2;
    /**
     * 3 超时取消
     */
    public static final int APPOINTMENT_STATUS_TIMEOUT_CANCELED = 3;
    /**
     * 4 已结算
     */
    public static final int APPOINTMENT_STATUS_SETTLED = 4;
    /**
     * 5 已支付
     */
    public static final int APPOINTMENT_STATUS_PAYED = 5;


    /**
     * redis 的键值
     * 由 phone + 当天日期 + 电话号码 组成
     * 这里 只写 phone + 当天日期
     */
    public static final String PHONE_DAY_CHECK = "phone:"+ DateUtils.getDate()+":";


    /**
     * 一天限制同个号码的预约单的次数
     */
    public static final int APPOINTMENT_ADD_DAY_PHONE_SIZE = 5;
    /**
     * redis 同个号码 初始数字
     */
    public static final int APPOINTMENT_ADD_ONE = 1;


    // 结算单 是否删除
    /**
     * 为删除 0
     */
    public static final int STATEMENT_STATUS_NOT_DEL = 0;
    /**
     * 已删除 1
     */
    public static final int STATEMENT_STATUS_IS_DEL = 1;


    // 结算单状态
    /**
     * 消费中 0
     */
    public static final int STATEMENT_STATUS_CONSUMER = 0;
    /**
     * 已支付 1
     */
    public static final int STATEMENT_STATUS_PRICE = 1;

    // bigDecimal 0值
    public static final Long BIGDECIMAL_ZERO = 0L;

    // compareTo 比较值
    public static final Long COMPARETO_ZERO = 0L;

    // 计算初始值
    public static final int COUNT_ONE = 1;

    // totalSum 初始值
    public static final Long TOTAL_SUM_ZERO = 0L;



}
